import request from '@/utils/request'

// 查询医讯指南列表
export function listNew(query) {
  return request({
    url: '/hospital/new/list',
    method: 'get',
    params: query
  })
}

// 查询医讯指南详细
export function getNew(articleId) {
  return request({
    url: '/hospital/new/' + articleId,
    method: 'get'
  })
}

// 新增医讯指南
export function addNew(data) {
  return request({
    url: '/hospital/new',
    method: 'post',
    data: data
  })
}

// 修改医讯指南
export function updateNew(data) {
  return request({
    url: '/hospital/new',
    method: 'put',
    data: data
  })
}

// 删除医讯指南
export function delNew(articleId) {
  return request({
    url: '/hospital/new/' + articleId,
    method: 'delete'
  })
}

// 导出医讯指南
export function exportNew(query) {
  return request({
    url: '/hospital/new/export',
    method: 'get',
    params: query
  })
}